#!/bin/sh
NUM=$(ps -ef |grep -v grep |grep -c sendRedEnvelopeTask.php)
if [ "$NUM" = 0 ]; then
        t=$(date +%Y-%m-%d_%H:%M:%S)
        echo -e "\n" >> /alidata/log/sendRedEnvelope.log
        echo ${t} >> /alidata/log/sendRedEnvelope.log
        /alidata/server/php/bin/php /alidata/www/shake/cmd/sendRedEnvelope/sendRedEnvelopeTask.php >> /alidata/log/sendRedEnvelope.log
fi